package module
{
	import views.ProjectBoard;

	public class ProjectEventModule extends ProjectModuleBase
	{
		private static var g_id:uint = 0;
		private var m_projectId:uint;
		public function ProjectEventModule()
		{
			this._id(g_id);
		}
		
		
		/**
		 * projectId
		 * 
		 * 
		 * 
		 */
		public function _projectId($value:Number):ProjectEventModule
		{
			m_projectId = $value;
			return this;
		}
		public function get projectId():Number
		{
			return m_projectId;
		}
		
		public static function createInstance():ProjectEventModule
		{
			g_id++;
			var instance:ProjectEventModule = new ProjectEventModule();
			instance = instance._title(GlobalTextLabel.DEFAULT_TITLE)._descript("")._progress(0) as ProjectEventModule;
			return instance;
		}
		public static function createInstanceWithProjectModule($project:ProjectModule):ProjectEventModule
		{
			var instance:ProjectEventModule = new ProjectEventModule();
			instance = instance._title(GlobalTextLabel.DEFAULT_TITLE)._descript("") as ProjectEventModule;
			return instance;
		}
		public static function setGlobalId($id:uint):void
		{
			g_id = $id;
		}
		
		/**
		 * toString
		 * 
		 * 
		 */
		override public function toString():String
		{
			var str:String = "{ProjectEventModule id=\"" + this.id + "\" title=\"" + this.title + "\" descript=\"" + this.descript + "\"}";
			return str;
		}
		
	}
}